<template>
  <a-layout id="app">
    <a-layout-sider id="sider">
      <div class="logo">
        <img class="img-responsive center-block" height="24px" src="./assets/logo.png" alt="logo" srcset="">
        <span class="text-center text-success">装备健康监测系统</span>
      </div>
      <a-menu theme="dark" mode="inline"> <!-- :default-selected-keys="['2']"> -->
        <a-menu-item key="1">
          <router-link class="text-white" to="/equipment">
            <a-icon type="home" />
            <span class="nav-text">装备信息</span>
          </router-link>
        </a-menu-item>
        <a-menu-item key="2">
          <router-link class="text-white" to="/platform">
            <a-icon type="bar-chart" />
            <span class="nav-text">监测平台</span>
          </router-link>
        </a-menu-item>
        <a-menu-item key="3">
          <router-link class="text-white" to="/monitoring">
            <a-icon type="video-camera" />
            <span class="nav-text">视频监控</span>
          </router-link>
        </a-menu-item>
        <!-- <a-menu-item key="2">
          <router-link class="text-white" to="/monitoring">
            <a-icon type="bar-chart" />
            <span class="nav-text">监测信息</span>
          </router-link>
        </a-menu-item>
        <a-menu-item key="3">
          <router-link class="text-white" to="/location">
            <a-icon type="environment" />
            <span class="nav-text">装备定位</span>
          </router-link>
        </a-menu-item>
        <a-menu-item key="4">
          <router-link class="text-white" to="/">
            <a-icon type="alert" />
            <span class="nav-text">健康预警</span>
          </router-link>
        </a-menu-item> -->
      </a-menu>
    </a-layout-sider>

    <a-layout id="content">
      <!-- <a-layout-header id="content-header"/> -->
      <a-layout-content id="content-body">
        <div :style="{ padding: '24px', background: '#fff', textAlign: 'center' }">
          <router-view/>
        </div>
      </a-layout-content>

      <a-layout-footer class="text-center">
        SNNU ©2022 Created by ablocker
      </a-layout-footer>
    </a-layout>
  </a-layout>
</template>

<style>
/* #app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;
}

#nav a {
  font-weight: bold;
  color: #2c3e50;
}

#nav a.router-link-exact-active {
  color: #42b983;
} */
#app .logo {
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  margin: 16px;
}

#sider {
  overflow: auto;
  height: 100vh;
  position: fixed;
  left: 0;
}

#content {
  margin-left: 200px;
}

#content-header {
  background: #fff;
  padding: 0;
}

#content-body {
  margin: 24px 16px 0;
  overflow: initial;
}

.text-center {
  text-align: center;
}
</style>
